﻿import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';

import { MyApp } from './app.component';

import { NativeModule } from './native.module';
import { PipesModule } from '../pipes/pipes.module';
import { ProviderModule } from '../providers/providers.module';
import { DirectivesModule } from '../directives/directives.module';

@NgModule({
    declarations: [
        MyApp
    ],
    imports: [
        BrowserModule,
        NativeModule,
        PipesModule,
        ProviderModule,
        DirectivesModule,
        IonicModule.forRoot(MyApp, {
            backButtonText: '',
            mode: 'ios',
            iconMode: 'ios',
            modalEnter: 'modal-slide-in',
            modalLeave: 'modal-slide-out',
            tabsPlacement: 'bottom',
            pageTransition: 'ios-transition'
        })
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        MyApp
    ],
    providers: [
        StatusBar,
        SplashScreen,
        { provide: ErrorHandler, useClass: IonicErrorHandler }
    ]
})
export class AppModule { }
